package com.ruibang.glass.quality.domain.req;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-02-23  16:54
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class InspectionDefectRule {
    @ApiModelProperty("比较操作符（>、<、=）1")
    @NotBlank(message = "比较操作符不可为空")
    private String comparisonOperatorOne;
    @NotNull(message = "阈值不可为空")
    @ApiModelProperty("阈值1")
    private Double thresholdValueOne;
    @ApiModelProperty("比较操作符（>、<、=）2")
    @NotBlank(message = "比较操作符不可为空")
    private String comparisonOperatorTwo;
    @NotNull(message = "阈值不可为空")
    @ApiModelProperty("阈值2")
    private Double thresholdValueTwo;
    @NotBlank(message = "坐标不可为空")
    @ApiModelProperty("坐标（X、Y）")
    private String coordinate;
    private String ruleName;
}
